from django.db import models

# Create your models here


class Staff(models.Model):
    surname = models.CharField(verbose_name='姓(Surname)', max_length=4)
    forename = models.CharField(verbose_name='名(Forename)', max_length=6)
    identity = models.CharField(verbose_name='身份证号码(Identity)', max_length=18)

    GENDER_CHOICES = (
        (0, '-'),
        (1, '男'),
        (2, '女')
    )

    gender = models.IntegerField(verbose_name='性别(Gender)', choices=GENDER_CHOICES)
    brith_date = models.DateField(verbose_name='出生日期(Date of Birth)')

    phone = models.CharField(verbose_name='手机号码(Phone)', max_length=20, blank=True)
    email = models.EmailField(verbose_name='电子邮件(Email)', blank=True)
    address = models.CharField(verbose_name='家庭地址(Adress)', max_length=100, blank=True)
    emergency_contact = models.CharField(verbose_name='紧急联系人(Emergency Contact)', max_length=100, blank=True)
    create_timestamp = models.DateTimeField(verbose_name='创建时间', auto_now_add=True) 
    last_edit_timestamp = models.DateTimeField(verbose_name='最近更新时间', auto_now=True)
